home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
varia
/
egebook.lha
/
ege.book
/
9
/
input.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-06-04
|
312b
|
13 lines
// illustrates stream input
#include <iostream.h>
main(){
int i; // integer variable i
cout << "How old are you ? ";
cin >> i; // converts user response into integer
// and assigns it to variable i
cout << "I am " << i << " years old\n";
}